import request from 'utils/request'

/**
 *  预约订单查询
 * @param {*} params 
 * @returns 
 */
export const reserve = async (params) => {
    return await request({
        url:'/auth/serviceAppointment/serviceQuery',
        method:'get',
        params
    })
}

/**
 * 统计数据查询
 * @returns 
 */
export const statistics = async () => {
    return await request({
        url:'/auth/shop/order/orderStatistics',
        method:'get'
    })
}

/**
 *  商品订单核销
 *  @params {orderSn}
 * @returns 
 */
export const productCancel = async (data)=>{
    return await request({
        url:'/auth/shop/order/productOrderCancel',
        method:'post',
        data
    }) 
}

/**
 *  套餐卡核销(弃用)
 *  @params {id,projectName,cancelNumber}
 * @returns 
 */
 export const paibjkOrderCancel = async (data)=>{
    return await request({
        url:'/auth/shop/order/paibjkOrderCancel',
        method:'post',
        data
    }) 
}